package com.crazybytex.fragment.jsontyperesolver;

import java.util.HashMap;
import java.util.Map;

/**
 * @description
 * @Author 本文作者 程序员潇然 疯狂的字节X https://www.crazybytex.com/
 * @Date 2022/7/29 10:10
 * @Description 见Tester 注释
 **/
public class TypeMapperMap {

    public static final Map<String, Class<? extends Message>> FRAME_HOLDER = new HashMap<>();

    static {
        FRAME_HOLDER.put("1", Message1.class);
        FRAME_HOLDER.put("2", Message2.class);
    }

    public static Class<? extends Message> type(String packageType) {

        return FRAME_HOLDER.get(packageType);
    }

}
